//
//  KZSubjectClassSelectingView.m
//  lg_zhinengbeikao_english
//
//  Created by 朱凯 on 2019/1/10.
//  Copyright © 2019 zhukai. All rights reserved.
//

#import "KZSubjectClassSelectingView.h"

@implementation KZSubjectClassSelectingView
{
    UILabel *_contentLabel;
}
- (instancetype)init {
    if (self = [super init]) {
        
        [self setupUI];
    }
    return self;
}
- (void)setupUI {
    
    _contentLabel = [[UILabel alloc] init];
    _contentLabel.numberOfLines = 0;
    _contentLabel.font = FONT(15);
    _contentLabel.textAlignment = NSTextAlignmentLeft;
    _contentLabel.textColor = [UIColor blackColor];
    [self addSubview:_contentLabel];
    [_contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(W(10));
        make.width.equalTo(self).offset(W(-20));
        make.top.mas_equalTo(H(10));
        
        // 设置滑动区域
        make.bottom.mas_equalTo(H(-30));
    }];
}

#pragma mark - setter
- (void)setModel:(KZExamItemModel *)model {
    
    _model = model;
    
    _contentLabel.text = model.subject;
}

@end
